defmodule ErrCode do
    @moduledoc "错误码"


    defmacro server_starting() do
        :server_starting
    end

    defmacro ok() do
        "ok"
    end

    defmacro not_connect() do
        "not_connect"
    end

    defmacro unsuccess() do
        "unsuccess"
    end

    defmacro input_error() do
        "input_error"
    end

    defmacro please_wait() do
        "please_wait"
    end

    defmacro not_scan() do
        "not_scan"
    end

    defmacro router_not_match() do
        "router_not_match"
    end

    defmacro args_not_match() do
        "args_not_match"
    end

    defmacro unexpected_error do
        "unexpected_error"
    end

    defmacro offline() do
        "offline"
    end

    defmacro passwd_error() do
        "passwd_error"
    end

    defmacro user_not_exist() do
        "user_not_exist"
    end

    defmacro verify_code_error() do
        "verify_code_error"
    end

    defmacro user_exists() do
        "user_exists"
    end

    defmacro not_exist() do
        "not_exist"
    end

    defmacro exists() do
        "exists"
    end

    defmacro access_error() do
        "access_error"
    end

    defmacro timeout() do
        "timeout"
    end

    defmacro failed() do
        "failed"
    end


    # 实验室的错误码 -start--
    defmacro has_not_commit() do
        "has_not_commit"
    end
    defmacro not_duty_user() do
        "not_duty_user"
    end
    defmacro status_error() do
        "status_error"
    end

    defmacro update_error() do
        "update_error"
    end

    defmacro not_join_project() do
        "not_join_project"
    end

    defmacro reg_in_check_stock() do
        "reg_in_check_stock"
    end

    defmacro reg_in_using() do
        "reg_in_using"
    end

    defmacro maintenance_cfg_error() do
        "maintenance_cfg_error"
    end

    defmacro share_error() do
        "share_error"
    end

    defmacro not_share() do
        "not_share"
    end

    defmacro printed() do
        "printed"
    end

    defmacro self_must_has_super() do
        "self_must_has_super"
    end

    defmacro cant_super() do
        "can't_have_super"
    end

    defmacro scan_counter_err() do
        "not_exist_reg_or_no_counter"
    end


    defmacro duty_repeat() do
        "duty_repeat"
    end

    defmacro amount_error() do
        "amount_error"
    end

    defmacro connect_fail() do
        "connect_fail"
    end


    defmacro commit_fail() do
        "commit_fail"
    end

    defmacro not_is_control() do
        "not_is_control"
    end
    # 实验室的错误码 -end--

    # ************deepr start************
    defmacro deepr_args_not_match() do
        "deepr_args_not_match"
    end
    defmacro deepr_args_input_error() do
        "deepr_args_input_error"
    end
    # ************deepr end************

    # ************中星生产管理系统错误码start*************
    # 工人不属于该工序
    defmacro not_belong_tech() do
        "not_belong_tech"
    end
    # 工序错误
    defmacro process_error() do
        "process_error"
    end
    # 没有这道工序
    defmacro not_has_tech() do
        "not_has_tech"
    end
    # 没在生产中
    defmacro not_in_producing() do
        "not_in_producing"
    end
    # 没提交数据
    defmacro not_committed() do
        "not_committed"
    end
    defmacro user_error() do
        "user_error"
    end
    defmacro tech_finished() do
        "tech_finished"
    end
    defmacro not_finished() do
        "not_finished"
    end
    # 工艺参数格式错误
    defmacro technique_error() do
        "technique_error"
    end
    # 工艺参数格式错误
    defmacro please_sync_proj_info() do
        "please_sync_proj_info"
    end
    defmacro step_error() do
        "step_error"
    end
    # ************中星生产管理系统错误码 end*************

    # ************cypher start*************
    defmacro cypher_not_is_list() do
        "cypher_not_is_list"
    end
    defmacro cypher_input_error() do
        "cypher_input_error"
    end
    # ************cypher end*************


    ###########################ftp错误###########################
    defmacro file_max_10m() do
        "file_max_10m"
    end
    ###########################ftp错误###########################
end
